package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.UserLike;
import com.tanhua.model.vo.CountsVo;

import java.util.List;

public interface UserLikeApi {

    //保存或者更新
    Boolean saveOrUpdate(Long userId, Long likeUserId, boolean isLike);

    List<UserLike> findLoves(Integer page, Integer pagesize, Long userId);

    List<UserLike> userLoves(Long id, Integer page, Integer pagesize);

    List<UserLike> lovesUser(Long LikeUserId, Integer page, Integer pagesize);

    UserLike AlreadyLove(Long userId, Long likeUserId);


    void modifyFansLoveStatus(Long id, Long uid);

    void deleteLoveStatus(Long id, Long uid);


    CountsVo findCounts(Long id);
}
